home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / gengetopt-2.6.lha / gengetopt-2.6 / src / Makefile < prev    next >
Makefile  |  2002-06-24  |  12KB  |  391 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile.in generated automatically by automake 1.4 from Makefile.am
  3.  
  4. # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  5. # This Makefile.in is free software; the Free Software Foundation
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  11. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  12. # PARTICULAR PURPOSE.
  13.  
  14. # Copyright (C) 1999, 2000, 2001  Free Software Foundation, Inc.
  15. #  
  16. # This file is part of GNU gengetopt 
  17. #
  18. # GNU gengetopt is free software; you can redistribute it and/or modify 
  19. # it under the terms of the GNU General Public License as published by 
  20. # the Free Software Foundation; either version 2, or (at your option) 
  21. # any later version. 
  22. #
  23. # GNU gengetopt is distributed in the hope that it will be useful, but 
  24. # WITHOUT ANY WARRANTY; without even the implied warranty of 
  25. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  26. # Public License for more details. 
  27. #
  28. # You should have received a copy of the GNU General Public License along 
  29. # with gengetopt; see the file COPYING. If not, write to the Free Software 
  30. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
  31.  
  32.  
  33. SHELL = /bin/sh
  34.  
  35. srcdir = .
  36. top_srcdir = ..
  37. prefix = /usr
  38. exec_prefix = ${prefix}
  39.  
  40. bindir = ${exec_prefix}/bin
  41. sbindir = ${exec_prefix}/sbin
  42. libexecdir = ${exec_prefix}/libexec
  43. datadir = ${prefix}/share
  44. sysconfdir = ${prefix}/etc
  45. sharedstatedir = ${prefix}/com
  46. localstatedir = ${prefix}/var
  47. libdir = ${exec_prefix}/lib
  48. infodir = ${prefix}/info
  49. mandir = ${prefix}/man
  50. includedir = ${prefix}/include
  51. oldincludedir = /usr/include
  52.  
  53. DESTDIR =
  54.  
  55. pkgdatadir = $(datadir)/gengetopt
  56. pkglibdir = $(libdir)/gengetopt
  57. pkgincludedir = $(includedir)/gengetopt
  58.  
  59. top_builddir = ..
  60.  
  61. ACLOCAL = aclocal
  62. AUTOCONF = autoconf
  63. AUTOMAKE = automake
  64. AUTOHEADER = autoheader
  65.  
  66. INSTALL = /bin/install -c
  67. INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
  68. INSTALL_DATA = ${INSTALL} -m 644
  69. INSTALL_SCRIPT = ${INSTALL_PROGRAM}
  70. transform = s,x,x,
  71.  
  72. NORMAL_INSTALL = :
  73. PRE_INSTALL = :
  74. POST_INSTALL = :
  75. NORMAL_UNINSTALL = :
  76. PRE_UNINSTALL = :
  77. POST_UNINSTALL = :
  78. AWK = gawk
  79. CC = gcc
  80. CPP2HTML = 
  81. CXX = c++
  82. EXEEXT = 
  83. LEX = flex
  84. MAKEINFO = makeinfo
  85. PACKAGE = gengetopt
  86. TAR = /bin/tar
  87. TXTC = $(SHELL) $(top_builddir)/txtc.sh
  88. VERSION = 2.6
  89. YACC = bison -b y -d -p
  90. YFLAGS =  -d
  91. gengetoptdocdir = ${prefix}/share/doc/gengetopt
  92. gengetoptexamplesdir = ${prefix}/share/doc/gengetopt/examples
  93.  
  94. SUFFIXES = .text
  95.  
  96. bin_PROGRAMS = gengetopt
  97.  
  98. gengetopt_SOURCES = copyright.text reportbugs.text parser.y scanner.l                     argsdef.c cmdline.c gengetopt.c gm.c yyerror.c                     gengetopt_strdup.text
  99.  
  100.  
  101. gengetopt_LDADD =  getopt.o getopt1.o -lfl
  102.  
  103. EXTRA_DIST = parser.h argsdef.h gengetopt.h ggos.h gm.h getopt.h              cmdline.ggo cmdline.h cxxconfig.h
  104.  
  105.  
  106. PROGNAME = $(top_builddir)/src/gengetopt$(EXEEXT)
  107.  
  108. # we distribute these files because who uses gengetopt might need them
  109. # these are installed in $(prefix)/share/gengetopt
  110. pkgdata_DATA = getopt.h getopt.c getopt1.c
  111.  
  112. # yywrap.c is added only if it is not found on lex (flex) lib, and will be
  113. # added automatically by automake
  114.  
  115. # automake (maybe due to a bug) doesn't added these files well,
  116. # so we explicitely declare them
  117. MAINTAINERCLEANFILES = scanner.c parser.h parser.c gengetopt_strdup.text
  118. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  119. CONFIG_HEADER = ../config.h
  120. CONFIG_CLEAN_FILES = 
  121. bin_PROGRAMS =  gengetopt$(EXEEXT)
  122. PROGRAMS =  $(bin_PROGRAMS)
  123.  
  124.  
  125. DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I..
  126. CPPFLAGS = 
  127. LDFLAGS = 
  128. LIBS = -lfl 
  129. gengetopt_OBJECTS =  copyright.o reportbugs.o parser.o scanner.o \
  130. argsdef.o cmdline.o gengetopt.o gm.o yyerror.o gengetopt_strdup.o
  131. gengetopt_DEPENDENCIES =   getopt.o getopt1.o
  132. gengetopt_LDFLAGS = 
  133. LEX_OUTPUT_ROOT = lex.yy
  134. LEXLIB = -lfl
  135. CFLAGS = -g -O2
  136. COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  137. CCLD = $(CC)
  138. LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
  139. DATA =  $(pkgdata_DATA)
  140.  
  141. DIST_COMMON =  Makefile.am Makefile.in getopt.c getopt1.c parser.c \
  142. scanner.c strdup.c yywrap.c
  143.  
  144.  
  145. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  146.  
  147. GZIP_ENV = --best
  148. SOURCES = $(gengetopt_SOURCES)
  149. OBJECTS = $(gengetopt_OBJECTS)
  150.  
  151. all: all-redirect
  152. .SUFFIXES:
  153. .SUFFIXES: .S .c .l .o .s .text .y
  154. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
  155.     cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile
  156.  
  157. Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
  158.     cd $(top_builddir) \
  159.       && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  160.  
  161.  
  162. mostlyclean-binPROGRAMS:
  163.  
  164. clean-binPROGRAMS:
  165.     -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
  166.  
  167. distclean-binPROGRAMS:
  168.  
  169. maintainer-clean-binPROGRAMS:
  170.  
  171. install-binPROGRAMS: $(bin_PROGRAMS)
  172.     @$(NORMAL_INSTALL)
  173.     $(mkinstalldirs) $(DESTDIR)$(bindir)
  174.     @list='$(bin_PROGRAMS)'; for p in $$list; do \
  175.       if test -f $$p; then \
  176.         echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
  177.          $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  178.       else :; fi; \
  179.     done
  180.  
  181. uninstall-binPROGRAMS:
  182.     @$(NORMAL_UNINSTALL)
  183.     list='$(bin_PROGRAMS)'; for p in $$list; do \
  184.       rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  185.     done
  186.  
  187. .c.o:
  188.     $(COMPILE) -c $<
  189.  
  190. .s.o:
  191.     $(COMPILE) -c $<
  192.  
  193. .S.o:
  194.     $(COMPILE) -c $<
  195.  
  196. mostlyclean-compile:
  197.     -rm -f *.o core *.core
  198.  
  199. clean-compile:
  200.  
  201. distclean-compile:
  202.     -rm -f *.tab.c
  203.  
  204. maintainer-clean-compile:
  205.  
  206. gengetopt$(EXEEXT): $(gengetopt_OBJECTS) $(gengetopt_DEPENDENCIES)
  207.     @rm -f gengetopt$(EXEEXT)
  208.     $(LINK) $(gengetopt_LDFLAGS) $(gengetopt_OBJECTS) $(gengetopt_LDADD) $(LIBS)
  209. .l.c:
  210.     $(LEX) $(AM_LFLAGS) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).c $@
  211. .y.c:
  212.     $(YACC) $(AM_YFLAGS) $(YFLAGS) $< && mv y.tab.c $*.c
  213.     if test -f y.tab.h; then \
  214.     if cmp -s y.tab.h $*.h; then rm -f y.tab.h; else mv y.tab.h $*.h; fi; \
  215.     else :; fi
  216. parser.h: parser.c
  217.  
  218.  
  219. install-pkgdataDATA: $(pkgdata_DATA)
  220.     @$(NORMAL_INSTALL)
  221.     $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
  222.     @list='$(pkgdata_DATA)'; for p in $$list; do \
  223.       if test -f $(srcdir)/$$p; then \
  224.         echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p"; \
  225.         $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgdatadir)/$$p; \
  226.       else if test -f $$p; then \
  227.         echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p"; \
  228.         $(INSTALL_DATA) $$p $(DESTDIR)$(pkgdatadir)/$$p; \
  229.       fi; fi; \
  230.     done
  231.  
  232. uninstall-pkgdataDATA:
  233.     @$(NORMAL_UNINSTALL)
  234.     list='$(pkgdata_DATA)'; for p in $$list; do \
  235.       rm -f $(DESTDIR)$(pkgdatadir)/$$p; \
  236.     done
  237.  
  238. tags: TAGS
  239.  
  240. ID: $(HEADERS) $(SOURCES) $(LISP)
  241.     list='$(SOURCES) $(HEADERS)'; \
  242.     unique=`for i in $$list; do echo $$i; done | \
  243.       awk '    { files[$$0] = 1; } \
  244.            END { for (i in files) print i; }'`; \
  245.     here=`pwd` && cd $(srcdir) \
  246.       && mkid -f$$here/ID $$unique $(LISP)
  247.  
  248. TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
  249.     tags=; \
  250.     here=`pwd`; \
  251.     list='$(SOURCES) $(HEADERS)'; \
  252.     unique=`for i in $$list; do echo $$i; done | \
  253.       awk '    { files[$$0] = 1; } \
  254.            END { for (i in files) print i; }'`; \
  255.     test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  256.       || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
  257.  
  258. mostlyclean-tags:
  259.  
  260. clean-tags:
  261.  
  262. distclean-tags:
  263.     -rm -f TAGS ID
  264.  
  265. maintainer-clean-tags:
  266.  
  267. distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  268.  
  269. subdir = src
  270.  
  271. distdir: $(DISTFILES)
  272.     @for file in $(DISTFILES); do \
  273.       d=$(srcdir); \
  274.       if test -d $$d/$$file; then \
  275.         cp -pr $$/$$file $(distdir)/$$file; \
  276.       else \
  277.         test -f $(distdir)/$$file \
  278.         || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  279.         || cp -p $$d/$$file $(distdir)/$$file || :; \
  280.       fi; \
  281.     done
  282. argsdef.o: argsdef.c
  283. cmdline.o: cmdline.c ../config.h cxxconfig.h getopt.h cmdline.h
  284. gengetopt.o: gengetopt.c argsdef.h ggos.h ../config.h cxxconfig.h gm.h \
  285.     cmdline.h gengetopt.h
  286. gm.o: gm.c argsdef.h ggos.h ../config.h cxxconfig.h gm.h
  287. parser.o: parser.c argsdef.h gengetopt.h
  288. scanner.o: scanner.c argsdef.h parser.h
  289. yyerror.o: yyerror.c
  290.  
  291. info-am:
  292. info: info-am
  293. dvi-am:
  294. dvi: dvi-am
  295. check-am: all-am
  296. check: check-am
  297. installcheck-am:
  298. installcheck: installcheck-am
  299. install-exec-am: install-binPROGRAMS
  300. install-exec: install-exec-am
  301.  
  302. install-data-am: install-pkgdataDATA
  303. install-data: install-data-am
  304.  
  305. install-am: all-am
  306.     @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  307. install: install-am
  308. uninstall-am: uninstall-binPROGRAMS uninstall-pkgdataDATA
  309. uninstall: uninstall-am
  310. all-am: Makefile $(PROGRAMS) $(DATA)
  311. all-redirect: all-am
  312. install-strip:
  313.     $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
  314. installdirs:
  315.     $(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(pkgdatadir)
  316.  
  317.  
  318. mostlyclean-generic:
  319.  
  320. clean-generic:
  321.  
  322. distclean-generic:
  323.     -rm -f Makefile $(CONFIG_CLEAN_FILES)
  324.     -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  325.  
  326. maintainer-clean-generic:
  327.     -test -z "scannerlparserhparserc$(MAINTAINERCLEANFILES)" || rm -f scannerl parserh parserc $(MAINTAINERCLEANFILES)
  328. mostlyclean-am:  mostlyclean-binPROGRAMS mostlyclean-compile \
  329.         mostlyclean-tags mostlyclean-generic
  330.  
  331. mostlyclean: mostlyclean-am
  332.  
  333. clean-am:  clean-binPROGRAMS clean-compile clean-tags clean-generic \
  334.         mostlyclean-am
  335.  
  336. clean: clean-am
  337.  
  338. distclean-am:  distclean-binPROGRAMS distclean-compile distclean-tags \
  339.         distclean-generic clean-am
  340.  
  341. distclean: distclean-am
  342.  
  343. maintainer-clean-am:  maintainer-clean-binPROGRAMS \
  344.         maintainer-clean-compile maintainer-clean-tags \
  345.         maintainer-clean-generic distclean-am
  346.     @echo "This command is intended for maintainers to use;"
  347.     @echo "it deletes files that may require special tools to rebuild."
  348.  
  349. maintainer-clean: maintainer-clean-am
  350.  
  351. .PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
  352. maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
  353. mostlyclean-compile distclean-compile clean-compile \
  354. maintainer-clean-compile uninstall-pkgdataDATA install-pkgdataDATA tags \
  355. mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
  356. distdir info-am info dvi-am dvi check check-am installcheck-am \
  357. installcheck install-exec-am install-exec install-data-am install-data \
  358. install-am install uninstall-am uninstall all-redirect all-am all \
  359. installdirs mostlyclean-generic distclean-generic clean-generic \
  360. maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  361.  
  362.  
  363. .text.o:
  364.     $(TXTC) $<
  365.  
  366. # it may happen, usually if the sources have been downloaded from CVS
  367. # repository, that cmdline.ggo is more recent than cmdline.c, but
  368. # cmdline.c cannot be re-generated, even because gengetopt has
  369. # to be built first. For instance if you only change spaces in cmdline.ggo
  370. # cmdline.c will not be different, and thus it is not updated in the CVS
  371. # repository; then when you make a checkout on another place, make
  372. # would try to build cmdline.c, but to do this it would need gengetopt
  373. # which is not built yet; so we simply touch cmdline.c (and this is safe)
  374. %.c: %.ggo
  375.     if test -f $(PROGNAME); then \
  376.     $(PROGNAME) --input=$< --no-handle-version --no-handle-help \
  377.         --no-handle-error; \
  378.     else touch $@ ; fi
  379.  
  380. # automatically generate gengetopt_strdup() from the replacement function
  381. # strdup().
  382. gengetopt_strdup.text: strdup.c
  383.     echo "/* gengetopt_strdup(): automatically generated from strdup.c. */" > $@
  384.     cat $< | sed -e 's/^strdup (/gengetopt_&/' \
  385.                -e 's/^char \* *$$/static &/' \
  386.                -e '/^#include.*$$/D' -e '/^$$/D' >> $@
  387.  
  388. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  389. # Otherwise a system limit (for SysV at least) may be exceeded.
  390. .NOEXPORT:
  391.